
<?php foreach ($users as $user) :?>
<tr>
    <td>
        <?= $user['username']?>
    </td>

    <td>

        <?php if($user['role'] == AppConstants::PROJECT_ROLE_OWNER) :?>
            创建者
        <?php endif;?>

        <?php if($user['role'] == AppConstants::PROJECT_ROLE_ADMIN) :?>
            管理员
        <?php endif;?>

        <?php if($user['role'] == AppConstants::PROJECT_ROLE_INTERPRETER) :?>
            翻译员
        <?php endif;?>

    </td>
    <td>
        <?= TimeUtil::showtime($user["createtime"] , TimeUtil::TIME_ZONE_GMT8) ?>
    </td>

    <td>




        <?php if ($project_user_relation['role'] != AppConstants::PROJECT_ROLE_INTERPRETER && $user['uid'] != $login_user['id']) :?>
                   <a href="javascript:openProjectUserDialog('edit', <?=$user['uid']?> ,  '<?=$user['username']?>',  <?=$user['role']?> )" class="btn btn-white btn-sm"><i class="fa fa-pencil"></i> 编辑 </a>
                   <a href="javascript:deleteUser(<?=$user['uid']?>, '<?=$user['username']?>') " class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除 </a>
        <?php  else: ?>
              --
        <?php endif;?>

    </td>

</tr>

<?php endforeach;?>

<script>


    </script>

